package com.pan.admin.module.loanProduct.lock;

import java.util.function.Supplier;

/**
 * 主体余额操作锁
 *
 * @author caoxin
 */
public interface LoanProductBalanceOperationLock {

    <T> T executeInLock(Long id, Supplier<T> supplier);

    void executeInLock(Long id, Runnable runnable);
}
